home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 5855 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.4 KB

  1. Path: access4.digex.net!not-for-mail
  2. From: ell@access4.digex.net (Ell)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: question about isolation of data in other
  5. Date: 7 Feb 1996 05:25:10 GMT
  6. Organization: The Universe
  7. Message-ID: <4f9d3m$2gc@news4.digex.net>
  8. NNTP-Posting-Host: access4.digex.net
  9. X-Newsreader: TIN [UNIX 1.3 950824BETA PL0]
  10.  
  11. From news3.digex.net!access1.digex.net!not-for-mail Wed Feb  7 00:07:40 1996
  12. Path: news3.digex.net!access1.digex.net!not-for-mail
  13. From: ell@access1.digex.net (Ell)
  14. Newsgroups: comp.object
  15. Subject: Re: question about isolation of data in other than abstract class...
  16. Date: 7 Feb 1996 03:42:20 GMT
  17. Organization: The Universe
  18. Lines: 15
  19. Message-ID: <4f972s$pe@news4.digex.net>
  20. References: <4dgujl$89n@netlab.cs.rpi.edu> <4f7b10$ckn@newsource.ihug.co.nz>
  21. NNTP-Posting-Host: access1.digex.net
  22. X-Newsreader: TIN [UNIX 1.3 950824BETA PL0]
  23.  
  24. Edward Sargisson (sarge@ihug.co.nz) wrote:
  25. : ejh@larry.gsfc.nasa.gov (Edward Hartnett) wrote:
  26. : >One thing I keep seeing implied is that abstract classes should, as a
  27. : >rule, hold only pure virtual functions (i.e the interface, not the
  28. : >implementation).
  29.  
  30. : Abstract Base Classes (ABCs) by definition contain only pure virtual
  31. : (in C++) functions...
  32.  
  33. A C++ ABC may contain as many concrete methods as you want.  It is 
  34. only required for a _single_ method of the class to be a pure virtual 
  35. for the class to be an ABC.
  36.  
  37. Elliott
  38.  
  39.